package com.datatools.context;

import java.io.Serializable;

/**
 * 程序上下文
 */
public class ApplicationCtx implements Serializable {
    private static final long serialVersionUID=1L;
    //单例
    private static volatile ApplicationCtx applicationCtx;
    public static ApplicationCtx getInitInstance() {
        if (null == applicationCtx) {
            synchronized (ApplicationCtx.class) {
                if (null == applicationCtx) {
                    applicationCtx = new ApplicationCtx();
                }
            }
        }
        return applicationCtx;
    }
    private ApplicationCtx(){}


}
